public class HomeWork04_06{
    public static void main(String[] args){
        float ans = 0.0f;
        for(int i = 1; i <= 10; i++){
            ans += 1.0f/(float)i;
        }
        System.out.println("1/2 + ... + 1/10 = " + ans);
    }
}